const express = require('express')
// 使用express框架的路由
const router = express.Router()

// 导入ordersHandler的路由处理模块
const ordersHandler = require('../router-handle/orders.js')


// 创建订单
router.post('/createOrder',ordersHandler.createOrder)
// 获取订单
router.post('/getOrder',ordersHandler.getOrder)
// 获取全部订单
router.get('/getOrderAll',ordersHandler.getOrderAll)
// 发货
router.post('/deliveryOrder',ordersHandler.deliveryOrder)
// 查找订单号
router.post('/findOrderId',ordersHandler.findOrderId)
// 向外暴露路由
module.exports = router